import request from '@/config/index';
const baseUrl = '/client';

/*-------------------------------公用--------------------------------------*/
// 所有国家
export const ApiCountryList = () => {
	return request.get({ url: `${baseUrl}/get-country` });
};

// 上传文件
export const ApiUpload = (data) => {
	return request.postForm({ url: `/infra/file/upload`, data });
};

// 上传文件-缩略图
export const ApiUploadMini = (data) => {
	return request.postForm({ url: `/infra/file/upload-image`, data });
};

// 上传文件-获取预览地址
export const ApiUploadPreview = (filename) => {
	return request.get({ url: `/infra/file/preview/${filename}` });
};

// 分页获取员工
export const ApiUserList = () => {
	return request.get({ url: `/system/user/simple-list` });
};